package com.itheima.service.system.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.itheima.dao.system.ModuleDao;
import com.itheima.dao.system.UserDao;
import com.itheima.dao.system.UserPortraitDao;
import com.itheima.domain.system.Module;
import com.itheima.domain.system.User;
import com.itheima.domain.system.UserPortrait;
import com.itheima.domain.system.UserPortraitExample;
import com.itheima.service.system.UserProtraitService;
import com.itheima.service.system.UserService;
import org.apache.zookeeper.data.Id;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class UserProtraitServiceImpl implements UserProtraitService {

    @Autowired
    private UserPortraitDao userPortraitDao;


    @Override
    public int deleteByPrimaryKey(String userId) {

        return userPortraitDao.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(UserPortrait record) {

        return userPortraitDao.insert(record);
    }

    @Override
    public int insertSelective(UserPortrait record) {
        return userPortraitDao.insertSelective(record);
    }

    @Override
    public List<UserPortrait> selectByExample(UserPortraitExample example) {
        return userPortraitDao.selectByExample(example);
    }

    @Override
    public UserPortrait selectByPrimaryKey(String userId) {
        return userPortraitDao.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserPortrait record) {
        return userPortraitDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserPortrait record) {
        return userPortraitDao.updateByPrimaryKey(record);
    }

}
